package com.gress.shop.service;

import com.gress.shop.bo.Action;
import com.gress.shop.bo.MemberActionRelation;

import java.util.List;

/**
 * Created xiongwen with 2018/3/6 15:42
 * Description: 权限管理
 */
public interface IActionService {

    List<Action> queryAllAction();

    List<Action> queryActionLikeName(String likeName);

    Action queryActionByCode(String code);

    Action queryActionById(String id);

    void insertAction(Action action);

    void deleteByActionId(String id);

    void deleteMAR(List<String> idList);

    void updateAction(Action action);

    void insertMemberActionRelation(MemberActionRelation memberActionRelation);

    void insertMemberActionRelation(String email, String[] actionId);

    List<MemberActionRelation> queryRelationByEmail(String email);

    List<MemberActionRelation> queryAllMAR();

    boolean checkIsExist(String actionId);

    /**
     * @param email
     * @Date: 19:12 2018/4/12
     * @Description: 角色权限 + 额外 权限Id 集合
     **/
    List<String> queryActionByEmail(String email);

}
